
var Item=
 /** @class */
function(){
    this.ItemId=0;
    this.name="";
    this.time=0;
    this.count=1;
    this.value=[0,0,0];
    this.eff=0;
    this.attr="";
    this.attr_value=0;
    function Item(){
        this.ItemId=0;
        this.name="";
        this.time=0;
        this.count=1;
        this.value=[0,0,0];
        this.eff=0;
        this.attr="";
        this.attr_value=0;
        return this;
    };

    this.defulat= function(cid){
        this.ItemId=cid;
        switch(cid){
            case 1:
                this.name="普通药草(木)";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,0.01];
                this.eff=0.5;
                this.attr="木";
                this.attr_value=1;
                break;
            case 2:
                this.name="普通药草(水)";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,0.01];
                this.eff=0.5;
                this.attr="水";
                this.attr_value=1;
                break;
            case 3:
                this.name="普通药草(火)";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,0.01];
                this.eff=0.5;
                this.attr="火";
                this.attr_value=1;
                break;
            case 4:{
                this.name="普通药草(土)";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,0.01];
                this.eff=0.5;
                this.attr="土";
                this.attr_value=1;
                break;
            }
            case 5:{
                this.name="普通药草(金)";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,0.01];
                this.eff=0.5;
                this.attr="金";
                this.attr_value=1;
                break;
            }
            case 5001:{
                this.name="金琅果";
                this.time=0.1;
                this.count=1;
                this.value=[0,0,1];
                this.eff=0.5;
                this.attr="金";
                this.attr_value=1;
                break;
            }

        }
        return this;
    };

    this.copy= function(o){
        this.ItemId=o.ItemId;
        this.name=o.name;
        this.time=o.time;
        this.count=o.count;
        this.value=o.value;
        this.eff=o.eff;
        this.attr=o.attr;
        this.attr_value=o.attr_value;
        return this;
    };

}



